hey guys is there a mod so u get points for setting a bomb in v2 or the bridge?
hey guys is there a mod so u get points for setting a bomb in v2 or the bridge?
Yea they exist out there, and it depends on how you want to do it.
It all involves adding 1 line to global/libmef/bomb.scr.
The line is
local.player addkills 1
If you want to only get a point for planting a bomb, add it to the bomb_set_event local.bomb local.player: thread.
OR
If you want to only get a point for defusing a bomb, add it to the bomb_defuse_event local.bomb local.player: thread.
OR
if you wish for the player to get a point for defusing AND planting, then add the line to the bomb_message local.bomb local.action local.player:
NOTE:: While you are editing bomb.scr, my advice is to update the bomb_message thread to get the players name using reborn command netname.
Change
local.name = waitthread global/libmef/util.scr::get_player_name local.player
TO
local.name = netname local.player
Purple's Playground
OBJ : 103.29.85.127:12203
xfire: purpleelephant1au
email: purpleelephant1au@gmail.com
skydrive: PurpleElephantSkydrive
cool thanks will do right away, what does the last part do?
liek this?Code:bomb_message local.bomb local.action local.player: local.name = waitthread global/libmef/util.scr::get_player_name local.player if (local.name != NIL) { local.str = level.mef_team[local.player.dmteam].desc + " player (" + local.name + ") " if (level.mef_settings["logevents"]) { if (local.action == "planted") local.player addkills 1 { local.logstring = "PLANT" } else { local.logstring = "DEFUSE" } println ("MEF " + local.logstring + " " + local.player.dmteam + " " + (waitthread global/libmef/util.scr::escape_string local.name " " "&")) } } else { if (local.team == "allies") { local.str = "The Allies have " } else { local.str = "The Axis have " } } local.str += (local.action + " a Bomb!") if (local.bomb.desc != NIL) { local.str += (" [" + local.bomb.desc + "]") } local iprintlnbold_noloc local.str end
EDIT:!!!!!!!!!!!!! found it!!!
thanks purps!Code:bomb_message local.bomb local.action local.player: local.name = waitthread global/libmef/util.scr::get_player_name local.player if (local.name != NIL) { local.str = level.mef_team[local.player.dmteam].desc + " player (" + local.name + ") " if (level.mef_settings["logevents"]) { if (local.action == "planted") { local.logstring = "PLANT" } else { local.logstring = "DEFUSE" } println ("MEF " + local.logstring + " " + local.player.dmteam + " " + (waitthread global/libmef/util.scr::escape_string local.name " " "&")) } } else { if (local.player.dmteam == "allies") { local.str = "The Allies have " } else { local.str = "The Axis have " } } local.str += (local.action + " a Bomb!") if (local.bomb.desc != NIL) { local.str += (" [" + local.bomb.desc + "]") } local iprintlnbold_noloc local.str local.player addkills 1 end
Last edited by Slimbips {sfx}; July 18th, 2017 at 06:07 AM.
than u also have the script where peoples name display when they get frozen en unfrozen?
They are cvars within mefy mod. Look at the readme included with the mod
g_ft_settings "frozenmsg:name;meltmsg:name" something like that, have to look it up
Purple's Playground
OBJ : 103.29.85.127:12203
xfire: purpleelephant1au
email: purpleelephant1au@gmail.com
skydrive: PurpleElephantSkydrive
Code:* "frozenmsg" Default: "loc name bodycodes" This setting controls the announcements when a player is frozen. It accepts the following options: "loc" -- Announce the location of the body when a player is frozen. "name" -- Announce the name of the player who was frozen. "force" -- Announce when a player is frozen even if no location or name is available. "bodycodes" -- Display all of the frozen body locations in abbreviated format on the HUD in the lower left corner of the screen. "none" -- Set this to "none" to disable all froze
that doesnt workCode:set g_ft_settings "meltgun: on" set g_ft_settings "melttime: 1" set g_ft_settings "frozenmsg: name" set g_ft_settings "meltmsg: name" or set g_f_settings "meltgun: on melttime: 1 frozenmsg: name meltmsg: name"
Last edited by Slimbips {sfx}; July 18th, 2017 at 08:30 AM.
set g_ft_settings "meltgun: on frozenmsg: loc name force meltmsg: privmsg melttime: 30"